<template>
	<view class="flex-col homepage">
		<view class="flex-row wrapper" v-for="(j,index) in ActivityList" @click="gotoa(j)">
			<view class="wraper-col"></view>
			<view class="flex-col flex-row wraper-col-two">
				<view class="u-line-1 text">{{j.activityTheme}}</view>
				<view class="u-line-1 text-two">社区活动</view>
				<view class="u-line-1 text-three">物业服务中心 {{j.createTime}}</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				ActivityList: {}
			}
		},
		onLoad(params) {
			this.ccc = params.j
			this.ListAll(this.ccc)
		},
		methods: {
			gotoa(j){
				uni.navigateTo({
					url: '/pages/gwb/Activity?j=' + JSON.stringify(j)
				})
			},
			ListAll(ccc) {
				this.$axios({
					url: 'serverwg/gwb/GwbActivity1',
					data: {
						id: ccc,
					},
					method: 'GET',
					success: (res) => {
						this.ActivityList = res.data.data.CommunityList1
						console.log(this.ActivityList)
					}
				})
			}
		}
	}
</script>
<style lang="scss" scoped>
	/** 全局样式-开始,建议放在公共css样式文件中,比如common.css 或app.vue文件 */

	html,
	body {
		margin: 0;
		width: 100%;
		height: 100%;
		font-size: 16px
	}

	view,
	text,
	image {
		position: relative;
		box-sizing: border-box;
		flex-shrink: 0;
	}

	.flex-col {
		display: flex;
		align-items: flex-start;
		flex-direction: column;
	}

	.flex-row {
		display: flex;
		align-items: flex-start;
	}

	.flex-col .flex-row {
		width: 100%
	}

	/** 全局样式-结束*/

	.homepage {
		height: 1334rpx;
		padding: 80rpx 0rpx 0rpx 34rpx;
		background: #dbf1e1;
		

		.wrapper {
			width: 688rpx;
			justify-content: space-between;
			margin-bottom: 34rpx;
			padding: 28rpx 7rpx 28rpx 32rpx;
			border-width: 2rpx;
			border-style: solid;
			border-color: #c8c9cc;

			.wraper-col {
				width: 222rpx;
				height: 162rpx;
				background: #c8c9cc;
			}

			.wraper-col-two {
				width: 411rpx;
				margin-top: 4rpx;

				.text {
					width: 398rpx;
					margin: 0rpx 0rpx 16rpx 12rpx;
					font-size: 30rpx;
					font-weight: 600;
					color: rgba(130, 130, 130, 1);
				}

				.text-two {
					width: 216rpx;
					height: 38rpx;
					margin: 0rpx 0rpx 28rpx 12rpx;
					font-size: 30rpx;
					font-weight: 600;
					color: rgba(171, 171, 171, 1);
				}

				.text-three {
					width: 362rpx;
					height: 38rpx;
					font-size: 26rpx;
					margin-left: 13rpx;
					font-weight: 600;
					color: rgba(147, 147, 147, 1);
				}
			}
		}

		.wrapper-two {
			width: 688rpx;
			justify-content: space-between;
			padding: 28rpx 7rpx 28rpx 32rpx;
			border-width: 2rpx;
			border-style: solid;
			border-color: rgba(226, 226, 226, 1);

			.wraper-col {
				width: 222rpx;
				height: 162rpx;
				background: rgba(204, 204, 204, 1);
			}

			.wraper-col-two {
				width: 411rpx;
				margin-top: 4rpx;

				.text {
					width: 398rpx;
					margin: 0rpx 0rpx 16rpx 12rpx;
					font-size: 30rpx;
					font-weight: 600;
					color: rgba(130, 130, 130, 1);
				}

				.text-two {
					width: 216rpx;
					height: 38rpx;
					margin: 0rpx 0rpx 28rpx 12rpx;
					font-size: 30rpx;
					font-weight: 600;
					color: rgba(171, 171, 171, 1);
				}

				.text-three {
					width: 362rpx;
					height: 38rpx;
					font-size: 26rpx;
					font-weight: 600;
					color: rgba(147, 147, 147, 1);
				}
			}
		}
	}
</style>
